<!DOCTYPE html>
<html class="x-admin-sm">

<head>
    <meta charset="UTF-8">
    <title>分片断点续传</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
    <link rel="stylesheet" href="http://192.168.3.115/web/res/css/xadmin.css">
    <script src="http://192.168.3.115/web/res/lib/layui/layui.js" charset="utf-8"></script>
    <script src="http://192.168.3.115/web/res/js/xadmin.js"></script>
</head>

<body>
  <script>
    // 上传配置
    var rOpt = {
      // target: 'http://192.168.3.237:8081/indexupload/fileUpload',
      maxFiles: 3,  // 限制最多上传三个文件
    }

    // 上传成功
    function success(args) {
      console.log('上传成功：', args);
    }
  </script>


  <!-- 单文件上传 -->
  <slice-upload type="block" onSuccess="success"></slice-upload>

  <script src="./slice-upload.js" charset="utf-8"></script>
</body>

</html>
